package demo.bocweb.com.book.contract;

import java.util.List;

import demo.bocweb.com.book.bean.book.BookItemBean;
import demo.bocweb.com.book.bean.book.BookListBean;
import demo.bocweb.com.sdk.base.BasePresenter;
import demo.bocweb.com.sdk.base.IBaseModel;
import demo.bocweb.com.sdk.base.IBaseView;
import io.reactivex.Observable;

/**
 * Created by zhelun on 2018/1/22.
 */

public interface BookContract {
    abstract class BookPresenter extends BasePresenter<BookModel,IBookView> {
         public abstract void getBookList(String tag, int start, int limit);
    }

    interface BookModel extends IBaseModel {
        Observable<BookListBean> getBookListWithTag(String tag, int start, int count);
    }

    interface IBookView extends IBaseView {
        void updateListData(List<BookItemBean> list);
    }
}
